import api from '@/api'



export let addShare = (path, isEncrypt) => {
  let data = {
    'path': path,
    'isEncrypt': isEncrypt
  }
  return api.post('/share/add', data)
}


export let getShare = (key, pwd) => {
  let data = {
    'key': key,
    'pwd': pwd
  }
  return api.post('/share/get', data)
}

export let getShareMeList = () => {
  return api.get('/share/list/me')
}
export let removeShare = (key) => {
  let data = {
    'key': key,
  }
  return api.post('/share/remove', data)
}




